#include "CgFxMgrBase.h"
//////////////////////////////////////////////////////////////////////////

bool CheckShaderSupport(void)
{
	bool isOk = true;
	if(cgGLIsProfileSupported(CG_PROFILE_GLSLV))
		printf("CG_PROFILE_GLSLV supported.\n");
	else
	{
		printf("CG_PROFILE_GLSLV is not supported!\n");
		isOk = false;
	}
	if(cgGLIsProfileSupported(CG_PROFILE_GLSLF))
		printf("CG_PROFILE_GLSLF supported.\n");
	else
	{
		printf("CG_PROFILE_GLSLF is not supported!\n");
		isOk = false;
	}
	if(cgGLIsProfileSupported(CG_PROFILE_GLSLG))
		printf("CG_PROFILE_GLSLG supported.\n");
	else
		printf("CG_PROFILE_GLSLG is not supported.\n");

	return isOk;
}
//////////////////////////////////////////////////////////////////////////
CgFxEffect::~CgFxEffect()
{
	CgFxParaList::iterator it = vplist.begin();
	while(it != vplist.end())
	{
		if(it->second)
			delete it->second;
		it++;
	}
	vplist.clear();
}